home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: Using QuickDrawGX in ODF
- Sent: 9/3/96 12:06 PM
- Received: 9/3/96 12:06 PM
- From: Brad Pettit <bpettit@apple.com>
- Reply-To: ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List
-
-
-
- You're right about the rotated text in that there is no direct support
- for rotated text in the framework. However, I'm not sure from your
- question if you ware wondering how picture contexts work. Here is an
- example.
-
-
- // create a 100x100 picture
- FW_CRect picBounds(FW_kFixed0, FW_kFixed0, FW_IntToFixed(100),
- FW_IntToFixed(100));
- FW_CPicture myPicture; // create an empty picture
-
- {
- // create a picture context so that we can draw into the picture
- FW_CPictureContext picContext(ev, myPicture, picBounds.Width(),
- picBounds.Height());
- picContext.SetClipRect(pictureBounds);
-
- MyDrawStuffHere(ev, pictureContext, pictureBounds);
- }
-
-
- myPicture now contains all the drawing done in MyDrawStuffHere.
- We can draw the picture anywhere using:
-
- FW_CPictureShape::RenderPicture(viewContext, myPicture,
- myDestinationRect);
-
-
- --Brad